Component({
  options: {
    multipleSlots: true // 在组件定义时的选项中启用多slot支持  
  },
  
  properties: {
    ShowActive:{
      type: Boolean,
      value: false,
      
    },

    params: {
      type: null,
      value: {}
    }
   
  },
  data:{
   
  },

  methods:{

    /*获取触摸起点*/ 
    _CStart(e){
      this.StartX = e.changedTouches[0].pageX;
    },

    /*获取触摸移动点*/ 
    _CMove(e){
      this.MoveX = e.changedTouches[0].pageX;

      if (this.StartX - this.MoveX > 60){
       this.setData({
         ShowActive:true
       }); 
      } else if (this.MoveX > this.StartX + 60){
        this.setData({
          ShowActive: false
        }); 
      }
    },

    /*删除*/ 
    _CRemove(e){
      let params = e.currentTarget.dataset.params;
      this.triggerEvent("remove", { params},{});
    }
  }
});